package com.text;

import com.github.jaemon.dinger.DingerSender;
import com.github.jaemon.dinger.core.entity.DingerRequest;
import com.github.jaemon.dinger.core.entity.enums.MessageSubType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class YourService {

    @Autowired
    private DingerSender dingerSender;

    public void sendMessage() {
        // 发送文本消息
        dingerSender.send(
                MessageSubType.TEXT,
                DingerRequest.request("这是一条测试消息")
        );
    }
}